<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@taglib prefix="accessory" uri="http://accessoryPackageTag.weitu.net" %>
<!doctype html>
<html lang="zh">
<head>
    <title></title>
    <%@include file="/common/header.jspf"%>
    <script type="text/javascript" src="${ctx}/resources/js/emergency/common/dictionaryPaths.js"></script>
    <script type="text/javascript" src="${ctx}/resources/js/emergency/common/base.js"></script>
    <script type="text/javascript" src="${ctx}/resources/js/emergency/rehearsalPlan/base.js"></script>
    <script type="text/javascript" src="${ctx}/resources/js/emergency/rehearsalPlan/edit.js"></script>
    <style>
        body{
            height: auto;
        }
    </style>
</head>
<body>

<div class="information">
    <form id="submit_form" method="post">
        <input type="hidden" name="id" value="${rehearsalPlan.id}" id="planId">
        <div class="information-title">
            <p>演练计划</p>
            <a class="panel-down" href="javascript:void(0)">
                <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
            </a>
        </div>
        <div class="cuttle">
            <div>
                <div class="form_one">
                    <label class="lable-style">组织单位:</label>
                    <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.deptId}" id="deptId"  style="width: 240px;" title="">
                </div>
                <div class="form_one">
                    <label class="lable-style">计划类型:</label>
                    <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.typeId}" id="typeId"   style="width: 240px;" title="">

                </div>
                <div class="form_one">
                    <label class="lable-style">演练名称:</label>
                    <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.emergencyPlanId}"  id="emergencyPlanId"  style="width: 240px;"  title="">

                </div>
            </div>
            <div style="clear: both">
                <div class="form_one">
                    <label class="lable-style">演练级别:</label>
                    <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.rehearsalLevelId}" id="rehearsalLevelId" style="width: 240px;" title="">
                </div>
                <div class="form_one">
                    <label class="lable-style">演练类型:</label>
                    <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.rehearsalTypeId}" id="rehearsalTypeId" style="width: 240px;"  title="">
                </div>
                <div class="form_one">
                    <label class="lable-style">演练方式:</label>
                    <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.rehearsalModelId}" id="rehearsalModelId"  style="width: 240px;"   title="">
                </div>
            </div>
            <div style="clear: both">

                <div class="form_one">
                    <label class="lable-style">主要科目:</label>
                    <input type="text" class="easyui-textbox"  data-options="disabled:true" value="${rehearsalPlan.mainSubjects}" style="width: 240px;"  title="">
                </div>
                <div class="form_one">
                    <label class="lable-style">计划演练开始日期:</label>
                    <input type="text" class="easyui-datebox" data-options="disabled:true" value="${rehearsalPlan.startDate}"   style="width: 240px;">

                </div>
                <div class="form_one">
                    <label class="lable-style">计划演练开始日期:</label>
                    <input type="text" class="easyui-datebox" data-options="disabled:true" value="${rehearsalPlan.endDate}"    style="width: 240px;">

                </div>
            </div>
            <div style="clear: both">

                    <label class="lable-style">是否继续填写演练信息:</label>
                    是 <input type="radio" name="isWrite"  value="1" onclick="infoOtherDisable(1)" ${rehearsalPlan.isWrite==1?"checked":""}>
                    否 <input type="radio" name="isWrite"  value="0" onclick="infoOtherDisable(0)" ${rehearsalPlan.isWrite==0?"checked":""}>

            </div>

        </div>
        <div id="info_other">
            <div class="information" >
                <div class="information-title">
                    <p>基本信息</p>
                    <a class="panel-down" href="javascript:void(0)">
                        <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
                    </a>
                </div>
                <div class="cuttle">
                    <div>
                        <div class="form_one">
                            <label class="lable-style">组织人:</label>
                            <input type="text" class="easyui-textbox"  id="userName" value="${rehearsalPlan.rehearsalInfo.userName}" data-options="disabled:true"  style="width: 240px;" title="">
                            <input type="hidden" name="rehearsalInfo.userId" value="${rehearsalPlan.rehearsalInfo.userId}"  id="userId" >
                        </div>
                        <div class="form_one">
                            <label class="lable-style">组织单位:</label>
                            <input type="text" class="easyui-textbox" data-options="disabled:true" id="i_deptId" value="${rehearsalPlan.rehearsalInfo.deptId}"    style="width: 240px;" title="">
                        </div>
                        <div class="form_one">
                            <label class="lable-style">演练名称:</label>
                            <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.rehearsalInfo.emergencyPlanId}"  id="i_emergencyPlanId" style="width: 240px;"  title="">

                        </div>

                    </div>
                    <div style="clear: both">

                        <div class="form_one">
                            <label class="lable-style">演练级别:</label>
                            <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.rehearsalInfo.rehearsalLevelId}"   id="i_rehearsalLevelId"  style="width: 240px;" title="">
                        </div>
                        <div class="form_one">
                            <label class="lable-style">演练类型:</label>
                            <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.rehearsalInfo.rehearsalTypeId}" id="i_rehearsalTypeId"  style="width: 240px;"  title="">
                        </div>
                        <div class="form_one">
                            <label class="lable-style">演练方式:</label>
                            <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.rehearsalInfo.rehearsalModelId}" id="i_rehearsalModelId"  style="width: 240px;"   title="">
                        </div>
                    </div>
                    <div style="clear: both">


                        <div class="form_one">
                            <label class="lable-style">演练日期:</label>
                            <input type="text" class="easyui-datebox" data-options="disabled:true" value="${rehearsalPlan.rehearsalInfo.rehearsalDate}"   style="width: 240px;">

                        </div>
                        <div class="form_one">
                            <label class="lable-style">演练区域:</label>
                            <input type="text" class="easyui-textbox" data-options="disabled:true"  value="${rehearsalPlan.rehearsalInfo.rehearsalRegion}" style="width: 240px;">

                        </div>
                        <div class="form_one">
                            <label class="lable-style">主要科目:</label>
                            <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.rehearsalInfo.mainSubjects}" style="width: 240px;"  title="">
                        </div>

                    </div>
                    <div style="clear: both">

                        <div class="form_one">
                            <label class="lable-style">区域联防演练:</label>
                            <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.rehearsalInfo.zoneDefense}" id="zoneDefense" style="width: 240px;">

                        </div>
                        <div class="form_one">
                            <label class="lable-style">企内、企外联合演练:</label>
                            <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.rehearsalInfo.enterpriseZoneDefense}" id="enterpriseZoneDefense"   style="width: 240px;">

                        </div>
                        <div class="form_one">
                            <label class="lable-style">具体位置:</label>
                            <input type="text" class="easyui-textbox"  data-options="disabled:true" value="${rehearsalPlan.rehearsalInfo.specificLocation}" style="width: 240px;"  title="">
                        </div>

                    </div>
                    <div style="clear: both">

                        <div class="form_one">
                            <label class="lable-style">直接投入费用:</label>
                            <input type="text" class="easyui-numberspinner"  data-options="disabled:true" value="${rehearsalPlan.rehearsalInfo.inputCost}"  style="width: 240px;"  title="">
                        </div>
                    </div>

                </div>
            </div>
            <div class="information" >
                <div class="information-title">
                    <p>参演人员</p>
                    <a class="panel-down" href="javascript:void(0)">
                        <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
                    </a>
                </div>
                <div class="cuttle">
                    <div style="height: 300px">
                        <div class="easyui-layout" data-options="fit:true">
                            <div data-options="region:'center',border:true">

                                <table id="user_table" ></table>
                            </div>
                        </div>
                    </div>
                    <br>
                    <div>
                        <input type="hidden" name="rehearsalUserOther.id" value="${rehearsalPlan.rehearsalUserOther.id}" >
                        <div class="form_one">
                            <label class="lable-style">企外:</label>
                            <input type="text" class="easyui-textbox" data-options="disabled:true" value="${rehearsalPlan.rehearsalUserOther.foreignEnterprises}"    style="width: 240px;" title="">
                        </div>
                        <div class="form_one">
                            <label class="lable-style">参演单位(企外):</label>
                            <input type="text" class="easyui-textbox" data-options="disabled:true"  value="${rehearsalPlan.rehearsalUserOther.participatingUnit}"   style="width: 240px;" title="">

                        </div>
                        <div class="form_one">
                            <label class="lable-style">人数:</label>
                            <input type="text" class="easyui-numberspinner" data-options="disabled:true" value="${rehearsalPlan.rehearsalUserOther.peopleCount}"   style="width: 240px;"  title="">

                        </div>
                    </div>


                </div>
            </div>

            <div class="information">
                <div class="information-title">
                    <p>相关附件</p>
                    <a class="panel-down" href="javascript:void(0)">
                        <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
                    </a>
                </div>
                <div>
                    <p>演练方案(应急预案附件)</p>
                    <accessory:accessorySimple permission=""  packageKey="em_r_plan" uploadUserId="${loginUser.id}" packageInfos="${accessoryList}"   accessoryType = "txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                    <p>演练总结附件 </p>
                    <accessory:accessorySimple permission=""  packageKey="em_r_plan_1" uploadUserId="${loginUser.id}" packageInfos="${accessoryList}"   accessoryType = "txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                    <p>演练评估附件 </p>
                    <accessory:accessorySimple permission=""  packageKey="em_r_plan_2" uploadUserId="${loginUser.id}" packageInfos="${accessoryList}"  accessoryType = "txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                    <p>其他附件 </p>
                    <accessory:accessorySimple permission=""  packageKey="em_r_plan_3" uploadUserId="${loginUser.id}" packageInfos="${accessoryList}"  accessoryType = "txt,docx,doc,xls,xlsx,jpg,png"></accessory:accessorySimple>
                </div>

            </div>
            <div class="information">
                <div class="information-title">
                    <p>发现问题</p>
                    <a class="panel-down" href="javascript:void(0)">
                        <span style="color: #49A9F9" class="fa fa-chevron-down fa-lg"></span>
                    </a>
                </div>

                <div class="cuttle" style="height: 300px">
                    <div class="easyui-layout" data-options="fit:true">
                        <div data-options="region:'center',border:true">

                            <table id="problem_table" ></table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>

</div>
<script id="detail" type="text/html">
    <div class="cuttle problem_detail">
        <div>
            <div class="form_one" >
                <label class="lable-style">任务名称:</label>
                <input type="text" class="easyui-textbox taskName" value="{{taskName}}"  style="width: 240px;"   title="" />
            </div>
            <div class="form_one">
                <label class="lable-style">任务描述:</label>
                <input type="text" class="easyui-textbox taskDescribe" value="{{taskDescribe}}" style="width: 240px;"  title="" />
            </div>


        </div>

        <div style="clear: both">
            <div class="form_one" >
                <label class="lable-style">接收人:</label>
                <input type="text" class="easyui-textbox receiveUserName" value="{{receiveUserName}}" style="width: 240px;" title="" />
                <input type="hidden" class="receiveUserId" value="{{receiveUserId}}"  title="" />
            </div>
            <div class="form_one" >
                <label class="lable-style">接收单位:</label>
                <input type="text" class="easyui-textbox jsDeptName" value="{{jsDeptName}}" style="width: 240px;"   title="" />
            </div>
        </div>
        <div style="clear: both">

            <div class="form_one" >
                <label class="lable-style">验收人:</label>
                <input type="text" class="easyui-textbox acceptUserName" value="{{acceptUserName}}" style="width: 240px;"   title="" />
                <input type="hidden" class="acceptUserId" value="{{acceptUserId}}"  title="" />
            </div>
            <div class="form_one" >
                <label class="lable-style">验收单位:</label>
                <input type="text" class="easyui-textbox ysDeptName" value="{{ysDeptName}}" style="width: 240px;"   title="" />
            </div>

        </div>
        <div style="clear: both">

            <div class="form_one">
                <label class="lable-style">要求完成日期:</label>
                <input type="text" class="easyui-datebox requireTime" value="{{requireTime}}" style="width: 240px;" title="" />
            </div>
            {{if isWrite == 0}}
            <div style="padding-left: 500px;">
                <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="fa fa-save fa-lg" onclick="saveRowData(this)">保存</a>
            </div>
            {{/if}}
        </div>

    </div>
</script>
</body>
</html>
